interface WithdrawAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface WithdrawAPIData {
  money: string
}

export function withdrawAPI(data: WithdrawAPIData, token: string) {
  return httpInstance.post<WithdrawAPIResData, WithdrawAPIData>(
    '/api/driver/tixian',
    data,
    { headers: { token } },
  )
}
